/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author greazy
* @date 2025-04-07
**/
@Data
@TableName("poker_user_activat_info")
public class PokerUserActivatInfo implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @NotNull
    @ApiModelProperty(value = "用户编号")
    private Long userId;

    @ApiModelProperty(value = "活动id")
    private Integer activateId;

    @ApiModelProperty(value = "steamID")
    private String steamId;
    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "筹码数量")
    private Integer jettonNum;

    @ApiModelProperty(value = "免费随机次数")
    private Integer randomFreeNum;

    @ApiModelProperty(value = "付费随机次数")
    private Integer randomPayNum;

    @ApiModelProperty(value = "poker1")
    private String poker1;

    @ApiModelProperty(value = "poker2")
    private String poker2;

    @ApiModelProperty(value = "poker3")
    private String poker3;

    @ApiModelProperty(value = "牌型")
    private String pokerType;

    @ApiModelProperty(value = "换牌次数")
    private Integer randomNum;

    @ApiModelProperty(value = "总花费的筹码数量")
    private Integer totalPayJettonNum;

    @ApiModelProperty(value = "用户排名")
    @TableField("`rank`")
    private Integer rank;

    @ApiModelProperty(value = "活动流水号")
    private String taskId;

    public void copy(PokerUserActivatInfo source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
